package com.msb;

import com.msb.service.DemoService;

import java.rmi.Naming;

/**
 * @author sunpeng
 * @Date 2021-07-20 16:41
 */
public class ClientMain {
    public static void main(String[] args) throws Exception{
        DemoService demoService = (DemoService)Naming.lookup("rmi://127.0.0.1:8081/demoService");
        String response = demoService.demo1("hello");
        System.out.println(response);
    }
}
